﻿package Message.Public
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SArena2v2SignUpMsg extends IMessageBase
    {
        public var code:int;
        public var isCancel:Boolean;
        public var mode:EArenaMode;
        public var team:SArena2v2Team;
        public const _type:int = 7046;
        public static var _regist:SArena2v2SignUpMsg = new SArena2v2SignUpMsg(true);

        public function SArena2v2SignUpMsg(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SArena2v2SignUpMsg();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.code);
            param1.writeBool(this.isCancel);
            this.mode.__write(param1);
            this.team.__write(param1);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.code = param1.readInt();
            this.isCancel = param1.readBool();
            this.mode = EArenaMode.__read(param1);
            this.team = new SArena2v2Team();
            this.team.__read(param1);
            return;
        }// end function

    }
}
